package com.zkj.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.zkj.entity.DishFlavor;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * @author: zhangKaiJun
 * @createTime：2024/8/29
 * @description：
 */
@Data
public class DishDTO {

    @ApiModelProperty(value = "菜品id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    @ApiModelProperty(value = "菜品名称")
    private String name;
    @ApiModelProperty(value = "菜品分类id")
    private Long categoryId;
    @ApiModelProperty(value = "菜品图片")
    private String image;
    @ApiModelProperty(value = "菜品价格")
    private BigDecimal price;
    @ApiModelProperty(value = "菜品描述")
    private String description;
    @ApiModelProperty(value = "菜品状态 0-停售 1-起售")
    private Integer status;
    @ApiModelProperty(value = "口味")
    private List<DishFlavor> flavors = new ArrayList<DishFlavor>();
}
